const getters = {
  // 播放状态
  playStatus: state => state.playStatus,
  // 全屏播放
  fullScreen: state => state.fullScreen,
  // 显示播放列表
  showPlayList: state => state.showPlayList,
  // 播放列表
  playList: state => state.playList,
  // 播放记录
  playHistoryList: state => state.playHistory,
  // 搜索历史记录
  searchHistory: state => state.searchHistory,
  currentIndex: state => state.currentIndex,
  // 获取当前歌曲
  currentSong: (state) => {
    return state.playList[state.currentIndex] || {}
  },
  // 排行榜
  topList: state => state.topList,
  // 播放模式
  mode: state => state.mode
}

export default getters
